<?php


namespace App\Models\goods;

use App\Models\base\traits\HasOwner;
use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\goods\OrderGroup
 *
 * @property int $id
 * @property int $user_id 关联发起用户id
 * @property int $goods_id 拼团商品ID
 * @property int $total 总共应参与人数
 * @property int $num 已参与人数
 * @property int $status -1 => '退款取消(失败)' , 0 => '进行中'  ,1 => '成功' ,
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup owner($userId)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereTotal($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\goods\OrderGroup whereUserId($value)
 * @mixin \Eloquent
 */
class OrderGroup extends Model
{

    use HasOwner;

    protected $fillable = [
        'user_id',
        'total',
        'num',
        'status',
        'goods_id'
    ];
}